home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / guis / gadutil / docs / autodocs / 51.gu_sizewindow < prev    next >
Encoding:
Text File  |  1996-07-16  |  1.5 KB  |  49 lines

  1. gadutil.library/GU_SizeWindow                   gadutil.library/GU_SizeWindow
  2.  
  3.    NAME
  4.     GU_SizeWindow -- Resize a window, and moves it if necessary
  5.  
  6.    SYNOPSIS
  7.     success = GU_SizeWindow(window, deltax, deltay)
  8.     D0,SR(Z)                A0      D0      D1
  9.  
  10.     BOOL GU_SizeWindow(struct Window *, WORD, WORD);
  11.  
  12.    FUNCTION
  13.     This function sends a reuqest to Intuition asking to size the window
  14.     the specified amounts. The delta arguments describes how much to
  15.     size the window along the respective axes.
  16.  
  17.     This function works like the Intuition function SizeWindow(), and the
  18.     parameters are also the same. This function also moves the window
  19.     automatically if it could not be sized at the current position.
  20.  
  21.     Remember that this function does not change the window immediately.
  22.     Just like the Intuition functions SizeWindow(), MoveWindow() and
  23.     ChangeWindowBox(), you have to wait for a IDCMP_CHANGEWINDOW IDCMP
  24.     message to arrive.
  25.  
  26.     An extra feature of GU_SizeWindow is that it sends back a result,
  27.     telling you if the window could be resized or not.
  28.  
  29.    INPUTS
  30.     window - pointer to the structure of the window to be sized
  31.  
  32.     deltax - signed value describing how much to size the window
  33.              on the x-axis
  34.  
  35.     deltay - signed value describing how much to size the window
  36.              on the y-axis
  37.  
  38.    RESULT
  39.     success - TRUE if the window could be sized the specified amount
  40.  
  41.     SR(Z)   - 0 if function returns TRUE, 1 otherwise
  42.  
  43.    BUGS
  44.     none known
  45.  
  46.    SEE ALSO
  47.     intuition/ChangeWindowBox(), intuition/SizeWindow()
  48.     intuition/MoveWindow()
  49.